﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="FillSpace.aspx.cs" Inherits="ReportAnalysis_FillSpace" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>基础数据维护</title>
    <base target="_self" />
    <link href="../css/css.css" rel="stylesheet" type="text/css" />
    <link href="../css/tab.css" type="text/css" rel="stylesheet" />

    <script src="../js/calendar.js" type="text/javascript"></script>

    <script src="../js/Common.js" type="text/javascript"></script>

    <script language="javascript" type="text/javascript">

        function BtnSubmit() {
            if (form1.sltArea.value == "") {
                form1.sltArea.focus();
                alert("地区不能为空！");
                return;
            }

            if (form1.txtYears.value == "") {
                form1.txtYears.focus();
                alert("年月不能为空！");
                return;
            }
            //效验数据是否正确
            if (parseInt(parseFloat($("txtPowers_1").value) + parseFloat($("txtPowers_2").value) + parseFloat($("txtPowers_3").value)) != 100) {
                alert("1.1生产管理用房耗电+1.2渠道用房耗电+1.3其它用房耗电不等于100%");
                return;
            }
            if (parseInt(parseFloat($("txtPowers_1_1").value) + parseFloat($("txtPowers_1_2").value) + parseFloat($("txtPowers_1_3").value)) != 100) {
                alert("通信机房+支撑系统用房+管理用房不等于100%");
                return;
            }
            if (parseInt(parseFloat($("txtPowers_3_1").value) + parseFloat($("txtPowers_3_2").value)) != 100) {
                alert("其中：基站机房+传输节点机房不等于100%");
                return;
            }
            if (parseInt(parseFloat($("txtPowers_3_1_1").value) + parseFloat($("txtPowers_3_1_2").value) + parseFloat($("txtPowers_3_1_3").value)) != 100) {
                alert("其中：GSM独立基站耗电量+TD-SCDMA独立基站耗电量+GSM&TD-SCDMA共站耗电量不等于100%");
                return;
            }

            var btnSave = window.document.getElementById("SaveData");
            if (btnSave != null)
                btnSave.click();
        }
    </script>

</head>
<body style="background-image: url('../images/hit_bg.gif');">
    <% 
        Response.ExpiresAbsolute = System.DateTime.Now.AddSeconds(-1);
        Response.Expires = 0;
        Response.CacheControl = "no-cache";
    %>
    <form id="form1" runat="server">
    <table style="width: 98%;" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr style="height: 5;">
            <td>
                <div align="left" class="greynavbar" style="background-image: url('../images/hit_bg.gif');">
                    <ul id="foldertab">
                        <li><a href="../ReportStorage/ImportReport.aspx">模板数据导入</a></li>
                        <li><a href="MonthlyReportManage.aspx">月度专项表管理</a></li>
                        <li><a class="current" href="FileSpaceManage.aspx">补空项比例设置</a></li>
                        <li><a href="ForecastBusinessManage.aspx">导入业务量数据和PDCH</a></li>
                    </ul>
                </div>
            </td>
        </tr>
    </table>
    <table width="98%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="327AC6">
        <tr style="background-color: #F9F9FB; height: 25;">
            <td align="left" style="width: 40%">
                &nbsp;<strong>地区：</strong>
            </td>
            <td>
                &nbsp;<select id="sltArea" runat="server" style="width: 110px;">
                </select><span style="color: #ff0000">*</span>
            </td>
        </tr>
        <tr style="background-color: #F9F9FB; height: 25;">
            <td align="left" style="width: 40%">
                &nbsp;<strong>月份：</strong>
            </td>
            <td>
                &nbsp;<select id="sltYear" runat="server" style="width: 60px;">
                    <option value="2008">2008</option>
                    <option value="2009">2009</option>
                    <option value="2010" selected="selected">2010</option>
                    <option value="2011">2011</option>
                    <option value="2012">2012</option>
                    <option value="2013">2013</option>
                    <option value="2014">2014</option>
                    <option value="2015">2015</option>
                </select>&nbsp;<select id="sltMonth" runat="server" style="width: 40px;">
                    <option value="01">01</option>
                    <option value="02">02</option>
                    <option value="03">03</option>
                    <option value="04">04</option>
                    <option value="05">05</option>
                    <option value="06">06</option>
                    <option value="07">07</option>
                    <option value="08">08</option>
                    <option value="09">09</option>
                    <option value="10">10</option>
                    <option value="11">11</option>
                    <option value="12">12</option>
                </select>
                <span style="color: #ff0000">*</span>
            </td>
        </tr>
        <tr style="background-color: #F9F9FB; height: 25;">
            <td align="left">
                &nbsp;<strong>1、耗电量：</strong>
            </td>
            <td>
                &nbsp;<asp:TextBox ID="txtPowers" runat="server" CssClass="TextBox" MaxLength="10"
                    TabIndex="1" Style="width: 110px;" Enabled="false">100</asp:TextBox>% &nbsp;
                <input id="chkPowers" type="checkbox" checked="CHECKED" runat="server" disabled="disabled" />参与计算比例
            </td>
        </tr>
        <tr style="background-color: #F9F9FB; height: 25;">
            <td align="left">
                &nbsp;<strong>&nbsp;&nbsp;1.1生产管理用房耗电：</strong>
            </td>
            <td>
                &nbsp;<asp:TextBox ID="txtPowers_1" runat="server" CssClass="TextBox" MaxLength="10"
                    TabIndex="1" Style="width: 110px;"></asp:TextBox>%<span style="color: #ff0000">*</span>&nbsp;&nbsp;<input
                        id="chkPowers_1" type="checkbox" checked="CHECKED" runat="server" />参与计算比例
            </td>
        </tr>
        <tr style="background-color: #F9F9FB; height: 25;">
            <td align="left">
                &nbsp;<strong>&nbsp;&nbsp;&nbsp;&nbsp;其中：通信机房：</strong>
            </td>
            <td>
                &nbsp;<asp:TextBox ID="txtPowers_1_1" runat="server" CssClass="TextBox" MaxLength="50"
                    TabIndex="2" Style="width: 110px;"></asp:TextBox>%<font color="#ff0000">*&nbsp;
                        <input id="chkPowers_1_1" type="checkbox" checked="CHECKED" runat="server" /><span
                            style="color: #000000; background-color: #f9f9fb">参与计算比例</span></font>
            </td>
        </tr>
        <tr style="background-color: #F9F9FB; height: 25;">
            <td align="left">
                &nbsp;<strong>&nbsp;&nbsp;&nbsp;&nbsp;支撑系统用房：</strong>
            </td>
            <td>
                &nbsp;<asp:TextBox ID="txtPowers_1_2" runat="server" CssClass="TextBox" MaxLength="10"
                    TabIndex="1" Style="width: 110px;"></asp:TextBox>%<span style="color: #ff0000">*&nbsp;
                        <input id="chkPowers_1_2" type="checkbox" checked="CHECKED" runat="server" /><span
                            style="color: #000000; background-color: #f9f9fb">参与计算比例</span></span>
            </td>
        </tr>
        <tr style="background-color: #F9F9FB; height: 25;">
            <td align="left">
                &nbsp;<strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;其中：客服用房：</strong>
            </td>
            <td>
                &nbsp;<asp:TextBox ID="txtPowers_1_2_1" runat="server" CssClass="TextBox" MaxLength="10"
                    TabIndex="1" Style="width: 110px;" Enabled="false">100</asp:TextBox>% &nbsp;
                <input id="chkPowers_1_2_1" type="checkbox" checked="CHECKED" runat="server" disabled="disabled" />参与计算比例
            </td>
        </tr>
        <tr style="background-color: #F9F9FB; height: 25;">
            <td align="left">
                &nbsp;<strong>&nbsp;&nbsp;&nbsp;&nbsp;管理用房：</strong>
            </td>
            <td>
                &nbsp;<asp:TextBox ID="txtPowers_1_3" runat="server" CssClass="TextBox" MaxLength="10"
                    TabIndex="1" Style="width: 110px;"></asp:TextBox>%<span style="color: #ff0000">*&nbsp;
                        <input id="chkPowers_1_3" type="checkbox" checked="CHECKED" runat="server" /><span
                            style="color: #000000; background-color: #f9f9fb">参与计算比例</span></span>
            </td>
        </tr>
        <tr style="background-color: #F9F9FB; height: 25;">
            <td align="left">
                &nbsp;<strong>&nbsp;&nbsp;1.2渠道用房耗电：</strong>
            </td>
            <td>
                &nbsp;<asp:TextBox ID="txtPowers_2" runat="server" CssClass="TextBox" MaxLength="10"
                    TabIndex="1" Style="width: 110px;"></asp:TextBox>%<span style="color: #ff0000">*&nbsp;
                        <input id="chkPowers_2" type="checkbox" checked="CHECKED" runat="server" /><span
                            style="color: #000000; background-color: #f9f9fb">参与计算比例</span></span>
            </td>
        </tr>
        <tr style="background-color: #F9F9FB; height: 25;">
            <td align="left">
                &nbsp;<strong>&nbsp;&nbsp;&nbsp;&nbsp;其中：独立营业厅：</strong>
            </td>
            <td>
                &nbsp;<asp:TextBox ID="txtPowers_2_1" runat="server" CssClass="TextBox" MaxLength="10"
                    TabIndex="1" Style="width: 110px;" Enabled="false">100</asp:TextBox>% &nbsp;
                <input id="chkPowers_2_1" type="checkbox" checked="CHECKED" runat="server" disabled="disabled" />参与计算比例
            </td>
        </tr>
        <tr style="background-color: #F9F9FB; height: 25;">
            <td align="left">
                &nbsp;<strong>&nbsp;&nbsp;1.3其它用房耗电：</strong>
            </td>
            <td>
                &nbsp;<asp:TextBox ID="txtPowers_3" runat="server" CssClass="TextBox" MaxLength="10"
                    TabIndex="1" Style="width: 110px;"></asp:TextBox>%<span style="color: #ff0000">*&nbsp;
                        <input id="chkPowers_3" type="checkbox" checked="CHECKED" runat="server" /><span
                            style="color: #000000; background-color: #f9f9fb">参与计算比例</span></span>
            </td>
        </tr>
        <tr style="background-color: #F9F9FB; height: 25;">
            <td align="left" style="height: 25px">
                &nbsp;<strong>&nbsp;&nbsp;&nbsp;&nbsp;其中：基站机房：</strong>
            </td>
            <td style="height: 25px">
                &nbsp;<asp:TextBox ID="txtPowers_3_1" runat="server" CssClass="TextBox" MaxLength="10"
                    TabIndex="1" Style="width: 110px;"></asp:TextBox>% &nbsp;
                <input id="chkPowers_3_1" type="checkbox" checked="CHECKED" runat="server" disabled="disabled" />参与计算比例
            </td>
        </tr>
        <tr style="background-color: #F9F9FB; height: 25;">
            <td align="left">
                &nbsp;<strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;其中：GSM独立基站耗电量：</strong>
            </td>
            <td>
                &nbsp;<asp:TextBox ID="txtPowers_3_1_1" runat="server" CssClass="TextBox" MaxLength="10"
                    TabIndex="1" Style="width: 110px;"></asp:TextBox>%<span style="color: #ff0000">*&nbsp;
                        <input id="chkPowers_3_1_1" type="checkbox" checked="CHECKED" runat="server" /><span
                            style="color: #000000; background-color: #f9f9fb">参与计算比例</span></span>
            </td>
        </tr>
        <tr style="background-color: #F9F9FB; height: 25;">
            <td align="left">
                &nbsp;<strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TD-SCDMA独立基站耗电量：</strong>
            </td>
            <td>
                &nbsp;<asp:TextBox ID="txtPowers_3_1_2" runat="server" CssClass="TextBox" MaxLength="10"
                    TabIndex="1" Style="width: 110px;"></asp:TextBox>%<span style="color: #ff0000">*&nbsp;
                        <input id="chkPowers_3_1_2" type="checkbox" checked="CHECKED" runat="server" /><span
                            style="color: #000000; background-color: #f9f9fb">参与计算比例</span></span>
            </td>
        </tr>
        <tr style="background-color: #F9F9FB; height: 25;">
            <td align="left">
                &nbsp;<strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;GSM&TD-SCDMA共站耗电量：</strong>
            </td>
            <td>
                &nbsp;<asp:TextBox ID="txtPowers_3_1_3" runat="server" CssClass="TextBox" MaxLength="10"
                    TabIndex="1" Style="width: 110px;"></asp:TextBox>%<span style="color: #ff0000">*&nbsp;
                        <input id="chkPowers_3_1_3" type="checkbox" checked="CHECKED" runat="server" /><span
                            style="color: #000000; background-color: #f9f9fb">参与计算比例</span></span>
            </td>
        </tr>
        <tr style="background-color: #F9F9FB; height: 25;">
            <td align="left">
                &nbsp;<strong>&nbsp;&nbsp;&nbsp; 传输节点机房：</strong>
            </td>
            <td>
                &nbsp;<asp:TextBox ID="txtPowers_3_2" runat="server" CssClass="TextBox" MaxLength="10"
                    TabIndex="1" Style="width: 110px;"></asp:TextBox>%<span style="color: #ff0000">*&nbsp;
                        <input id="chkPowers_3_2" type="checkbox" checked="CHECKED" runat="server" /><span
                            style="color: #000000; background-color: #f9f9fb">参与计算比例</span></span>
            </td>
        </tr>
        <tr style="height: 30; background-color: #F9F9FB">
            <td>
            </td>
            <td>
                <input id="SaveData" type="button" style="width: 0; height: 0;" class="button02"
                    runat="server" value="提交" onserverclick="SaveData_ServerClick" />
                <input type="button" id="Button1" value="提交" class="button02" onclick="BtnSubmit();" />
                <input type="button" id="Button2" value="退出" class="button02" onclick="window.location.href='FileSpaceManage.aspx';" />
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
